import Layout from '@/layouts/BasicLayout'
import LayoutInset from '@/layouts/LayoutInset'

const maintenanceDecision = {
    path: '/maintenance-decision',
    component: Layout,
    name: 'MaintenanceDecision',
    meta: {
        title: '日常养护',
        code: 'dlyh_r_a2_1'
    },
    redirect: '/maintenance-decision/patrol',
    children: [
        {
            path: 'patrol',
            name: 'MaintenancePatrol',
            component: LayoutInset,
            meta: {
                title: '养护巡查',
                iconSvg: 'tour-plan',
                code: 'dlyh_a2_b3_1'
            },
            redirect: '/maintenance-decision/patrol/plan/index',
            children: [
                {
                    path: 'plan',
                    name: 'PatrolPlan',
                    meta: {
                        title: '巡查计划',
                        code: 'dlyh_b3_c7_1'
                    },
                    redirect: '/maintenance-decision/patrol/plan/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'PlanList',
                            meta: {
                                title: '列表',
                                componentName: 'PlanList',
                                details: ['PlanDetail']
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/plan/index')
                        },
                        {
                            path: 'detail',
                            name: 'PlanDetail',
                            hide: true,
                            meta: {
                                title: '巡查计划详情',
                                activeMenu: '/maintenance-decision/patrol/plan/index'
                            },
                            component: () => import('@/views/maintenance-decision/patrol/plan/detail')
                        },
                        {
                            path: 'add',
                            name: 'PlanAdd',
                            hide: true,
                            meta: {
                                title: '巡查计划新建',
                                activeMenu: '/maintenance-decision/patrol/plan/index'
                            },
                            component: () => import('@/views/maintenance-decision/patrol/plan/add')
                        },
                        {
                            path: 'edit',
                            name: 'PlanEdit',
                            hide: true,
                            meta: {
                                title: '巡查计划编辑',
                                activeMenu: '/maintenance-decision/patrol/plan/index'
                            },
                            component: () => import('@/views/maintenance-decision/patrol/plan/add')
                        }
                    ]
                },
                {
                    path: 'task',
                    name: 'PatrolTask',
                    meta: {
                        title: '巡查任务',
                        code: 'dlyh_b3_c8_1'
                    },
                    redirect: '/maintenance-decision/patrol/task/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'TaskList',
                            meta: {
                                title: '列表',
                                componentName: 'TaskList',
                                details: [
                                    'TaskDetail',
                                    'AddDailyNightTask',
                                    'AddCulvertTask',
                                    'AddBridgeTask',
                                    'AddRoadbedTask',
                                    'AddTunnelTask',
                                    'AddRoadworkTask'
                                ]
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/index')
                        },
                        {
                            path: 'detail',
                            name: 'TaskDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/maintenance-decision/patrol/task/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/plan/detail')
                        },
                        {
                            path: 'daily-night', // 日常和夜间
                            name: 'AddDailyNightTask',
                            meta: {
                                title: '记录结果',
                                activeMenu: '/maintenance-decision/patrol/task/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/daily-night/index')
                        },
                        {
                            path: 'culvert', // 涵洞经常性
                            name: 'AddCulvertTask',
                            meta: {
                                title: '记录结果',
                                activeMenu: '/maintenance-decision/patrol/task/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/culvert/index')
                        },
                        {
                            path: 'bridge', // 桥梁经常性
                            name: 'AddBridgeTask',
                            meta: {
                                title: '记录结果',
                                activeMenu: '/maintenance-decision/patrol/task/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/bridge/index')
                        },
                        {
                            path: 'roadbed', // 路基边坡经常性
                            name: 'AddRoadbedTask',
                            meta: {
                                title: '记录结果',
                                activeMenu: '/maintenance-decision/patrol/task/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/roadbed/index')
                        },
                        {
                            path: 'tunnel', // 隧道（土建及其他）经常性和隧道（机电）经常性检查
                            name: 'AddTunnelTask',
                            meta: {
                                title: '记录结果',
                                activeMenu: '/maintenance-decision/patrol/task/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/tunnel/index')
                        },
                        {
                            path: 'roadwork', // 施工点专项检查
                            name: 'AddRoadworkTask',
                            meta: {
                                title: '记录结果',
                                activeMenu: '/maintenance-decision/patrol/task/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/roadwork/index')
                        }
                    ]
                },
                {
                    path: 'record',
                    name: 'PatrolRecord',
                    meta: {
                        title: '巡查记录',
                        code: 'dlyh_b3_c9_1'
                    },
                    redirect: '/maintenance-decision/patrol/record/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'RecordList',
                            meta: {
                                title: '列表',
                                componentName: 'RecordList',
                                details: []
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/record/index')
                        },
                        {
                            path: 'daily-night', // 日常和夜间
                            name: 'AddDailyNightRecord',
                            meta: {
                                title: '新建',
                                activeMenu: '/maintenance-decision/patrol/record/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/daily-night/index')
                        },
                        {
                            path: 'culvert', // 涵洞经常性
                            name: 'AddCulvertRecord',
                            meta: {
                                title: '新建',
                                activeMenu: '/maintenance-decision/patrol/record/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/culvert/index')
                        },
                        {
                            path: 'bridge', // 桥梁经常性
                            name: 'AddBridgeRecord',
                            meta: {
                                title: '新建',
                                activeMenu: '/maintenance-decision/patrol/record/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/bridge/index')
                        },
                        {
                            path: 'roadbed', // 路基边坡经常性
                            name: 'AddRoadbedRecord',
                            meta: {
                                title: '新建',
                                activeMenu: '/maintenance-decision/patrol/record/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/roadbed/index')
                        },
                        {
                            path: 'tunnel', // 隧道（土建及其他）经常性和隧道（机电）经常性检查
                            name: 'AddTunnelRecord',
                            meta: {
                                title: '新建',
                                activeMenu: '/maintenance-decision/patrol/record/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/tunnel/index')
                        },
                        {
                            path: 'roadwork', // 施工点专项检查
                            name: 'AddRoadworkRecord',
                            meta: {
                                title: '新建',
                                activeMenu: '/maintenance-decision/patrol/record/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/task/add/roadwork/index')
                        },
                        {
                            path: 'detail', // 8种详情
                            name: 'RecordDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/maintenance-decision/patrol/record/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/record/detail/index')
                        },
                    ]
                },
                {
                    path: 'flaw',
                    name: 'PatrolFlaw',
                    meta: {
                        title: '缺陷病害管理',
                        code: 'dlyh_b3_c10_1'
                    },
                    redirect: '/maintenance-decision/patrol/flaw/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'FlawList',
                            meta: {
                                title: '列表',
                                componentName: 'FlawList',
                                details: ['FlawDetail']
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/patrol/flaw/index')
                        },
                        {
                            path: 'detail',
                            name: 'FlawDetail',
                            hide: true,
                            meta: {
                                title: '缺陷管理详情',
                                activeMenu: '/maintenance-decision/patrol/flaw/index'
                            },
                            component: () => import('@/views/maintenance-decision/patrol/flaw/detail')
                        },
                        {
                            path: 'add',
                            name: 'FlawAdd',
                            hide: true,
                            meta: {
                                title: '缺陷管理新增',
                                activeMenu: '/maintenance-decision/patrol/flaw/index'
                            },
                            component: () => import('@/views/maintenance-decision/patrol/flaw/add')
                        }
                    ]
                },
                {
                    path: 'event',
                    name: 'EventList',
                    meta: {
                        title: '交通事件上报',
                        code: 'dlyh_b3_c11_1'
                    },
                    component: LayoutInset,
                    redirect: '/maintenance-decision/patrol/event/list',
                    children: [
                        {
                            path: 'list',
                            name: 'Events',
                            meta: {
                                title: '列表',
                                componentName: 'Events',
                                details: ['EditEvent', 'EventDetail']
                            },
                            component: () => import('@/views/maintenance-decision/patrol/event/list'),
                            hide: true
                        },
                        {
                            path: 'add',
                            name: 'AddEvent',
                            meta: {
                                title: '事件录入',
                                activeMenu: '/maintenance-decision/patrol/event/list'
                            },
                            component: () => import('@/views/maintenance-decision/patrol/event/add-edit'),
                            hide: true
                        },
                        {
                            path: 'eidt',
                            name: 'EditEvent',
                            meta: {
                                title: '事件编辑',
                                activeMenu: '/maintenance-decision/patrol/event/list'
                            },
                            component: () => import('@/views/maintenance-decision/patrol/event/add-edit'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'EventDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/maintenance-decision/patrol/event/list'
                            },
                            component: () => import('@/views/maintenance-decision/patrol/event/detail'),
                            hide: true
                        }
                    ]
                },
                {
                    path: 'daily-maintenance-task',
                    name: 'DailyMaintenanceTask',
                    meta: {
                        title: '养护任务单',
                        code: 'dlyh_b3_c82_1'
                    },
                    component: LayoutInset,
                    redirect: '/maintenance-decision/patrol/daily-maintenance-task/index',
                    children: [
                        {
                            path: 'index',
                            name: 'DailyMaintenanceTaskIndex',
                            meta: {
                                title: '列表',
                                componentName: 'DailyMaintenanceTaskIndex',
                                details: ['DailyMaintenanceTaskDetail'],
                                activeMenu: '/maintenance-decision/patrol/daily-maintenance-task/index'
                            },
                            component: () => import('@/views/workspace/todo/maintenance-task/index'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'DailyMaintenanceTaskDetail',
                            hide: true,
                            component: () => import('@/views/workspace/todo/maintenance-task/detail'),
                            meta: {
                                title: '详情',
                                activeMenu: '/maintenance-decision/patrol/daily-maintenance-task/index'
                            }
                        },
                        {
                            path: 'approve',
                            name: 'DailyMaintenanceTaskApprove',
                            hide: true,
                            component: () => import('@/views/workspace/todo/maintenance-task/detail'),
                            meta: {
                                title: '审批',
                                activeMenu: '/maintenance-decision/patrol/daily-maintenance-task/index'
                            }
                        },
                        {
                            path: 'add',
                            name: 'DailyMaintenanceTaskAdd',
                            hide: true,
                            component: () => import('@/views/workspace/todo/maintenance-task/add'),
                            meta: {
                                title: '新增',
                                activeMenu: '/maintenance-decision/patrol/daily-maintenance-task/index'
                            }
                        },
                        {
                            path: 'edit',
                            name: 'DailyMaintenanceTaskEdit',
                            hide: true,
                            component: () => import('@/views/workspace/todo/maintenance-task/add'),
                            meta: {
                                title: '编辑',
                                activeMenu: '/maintenance-decision/patrol/daily-maintenance-task/index'
                            }
                        }
                    ]
                },
            ]
        },
        {
            path: 'daily-measurement',
            name: 'DailyMeasurement',
            component: LayoutInset,
            meta: {
                title: '日常养护计量',
                iconSvg: 'daily-measurement',
                code: 'dlyh_a2_b34_1'
            },
            redirect: '/maintenance-decision/daily-measurement/contract/index',
            children: [
                {
                    path: 'contract',
                    name: 'DailyMeasurementContract',
                    meta: {
                        title: '合同管理',
                        code: 'dlyh_b34_c83_1'
                    },
                    redirect: '/maintenance-decision/daily-measurement/contract/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'ContractList',
                            meta: {
                                title: '列表',
                                componentName: 'ContractList',
                                details: [
                                    'ContractAdd',
                                    'ContractEdit',
                                    'ContractDetail',
                                    'ContractUnitPriceAdd',
                                    'ContractUnitPriceDetail'
                                ]
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/daily-measurement/contract/index')
                        },
                        {
                            path: 'detail',
                            name: 'ContractDetail',
                            hide: true,
                            meta: {
                                title: '合同详情',
                                activeMenu: '/maintenance-decision/daily-measurement/contract/index'
                            },
                            component: () => import('@/views/maintenance-decision/daily-measurement/contract/detail')
                        },
                        {
                            path: 'add',
                            name: 'ContractAdd',
                            hide: true,
                            meta: {
                                title: '新增合同',
                                activeMenu: '/maintenance-decision/daily-measurement/contract/index'
                            },
                            component: () => import('@/views/maintenance-decision/daily-measurement/contract/add')
                        },
                        {
                            path: 'edit',
                            name: 'ContractEdit',
                            hide: true,
                            meta: {
                                title: '编辑合同',
                                activeMenu: '/maintenance-decision/daily-measurement/contract/index'
                            },
                            component: () => import('@/views/maintenance-decision/daily-measurement/contract/add')
                        },
                        {
                            path: 'add-unit-price',
                            name: 'ContractUnitPriceAdd',
                            hide: true,
                            meta: {
                                title: '新增单价',
                                activeMenu: '/maintenance-decision/daily-measurement/contract/index'
                            },
                            component: () => import('@/views/maintenance-decision/daily-measurement/unit-price/add')
                        },
                        {
                            path: 'detail-unit-price',
                            name: 'ContractUnitPriceDetail',
                            hide: true,
                            meta: {
                                title: '单价详情',
                                activeMenu: '/maintenance-decision/daily-measurement/contract/index'
                            },
                            component: () => import('@/views/maintenance-decision/daily-measurement/unit-price/detail')
                        },
                    ]
                },
                {
                    path: 'record',
                    name: 'MaintenanceRecordManagement',
                    meta: {
                        title: '养护记录管理',
                        code: 'dlyh_b34_c84_1'
                    },
                    redirect: '/maintenance-decision/daily-measurement/record/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'MaintenanceRecordManagementList',
                            meta: {
                                title: '列表',
                                componentName: 'MaintenanceRecordManagementList',
                                details: [
                                    'MaintenanceRecordManagementDetail',
                                    'MaintenanceRecordManagementAdd',
                                    'MaintenanceRecordManagementEdit'
                                ]
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/daily-measurement/record/index')
                        },
                        {
                            path: 'detail',
                            name: 'MaintenanceRecordManagementDetail',
                            hide: true,
                            meta: {
                                title: '养护记录详情',
                                activeMenu: '/maintenance-decision/daily-measurement/record/index'
                            },
                            component: () => import('@/views/maintenance-decision/daily-measurement/record/detail')
                        },
                        {
                            path: 'add',
                            name: 'MaintenanceRecordManagementAdd',
                            hide: true,
                            meta: {
                                title: '新增养护记录',
                                activeMenu: '/maintenance-decision/daily-measurement/record/index'
                            },
                            component: () => import('@/views/maintenance-decision/daily-measurement/record/add')
                        },
                        {
                            path: 'edit',
                            name: 'MaintenanceRecordManagementEdit',
                            hide: true,
                            meta: {
                                title: '编辑养护记录',
                                activeMenu: '/maintenance-decision/daily-measurement/record/index'
                            },
                            component: () => import('@/views/maintenance-decision/daily-measurement/record/add')
                        },
                    ]
                },
                {
                    path: 'metrological-application',
                    name: 'MeasurementApplication',
                    meta: {
                        title: '计量申请',
                        code: 'dlyh_b34_c85_1'
                    },
                    redirect: '/maintenance-decision/daily-measurement/metrological-application/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'MeasurementApplicationList',
                            meta: {
                                title: '列表',
                                componentName: 'MeasurementApplicationList',
                                details: [],
                                activeMenu: '/maintenance-decision/daily-measurement/metrological-application/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/daily-measurement/metrological-application/index')
                        },
                        {
                            path: 'add',
                            name: 'MeasurementApplicationAdd',
                            meta: {
                                title: '新增',
                                componentName: 'MeasurementApplicationAdd',
                                details: [],
                                activeMenu: '/maintenance-decision/daily-measurement/metrological-application/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/daily-measurement/metrological-application/add/index.vue')
                        },
                        {
                            path: 'edit',
                            name: 'MeasurementApplicationEdit',
                            meta: {
                                title: '编辑',
                                componentName: 'MeasurementApplication',
                                details: [],
                                activeMenu: '/maintenance-decision/daily-measurement/metrological-application/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/daily-measurement/metrological-application/add/index.vue')
                        },
                        {
                            path: 'detail',
                            name: 'MeasurementApplicationDetail',
                            meta: {
                                title: '详情',
                                componentName: 'MeasurementApplicationDetail',
                                details: [],
                                activeMenu: '/maintenance-decision/daily-measurement/metrological-application/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/daily-measurement/metrological-application/detail/index.vue')
                        }
                    ]
                },
                {
                    path: 'metrological-approval',
                    name: 'MeasurementApproval',
                    meta: {
                        title: '计量审批',
                        code: 'dlyh_b34_c86_1'
                    },
                    redirect: '/maintenance-decision/daily-measurement/metrological-approval/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'MeasurementApprovalList',
                            meta: {
                                title: '列表',
                                componentName: 'MeasurementApprovalList',
                                details: []
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/daily-measurement/metrological-approval/index')
                        },
                        {
                            path: 'detail',
                            name: 'MeasurementApprovalDetail',
                            meta: {
                                title: '详情',
                                componentName: 'MeasurementApprovalDetail',
                                details: [],
                                activeMenu: '/maintenance-decision/daily-measurement/metrological-approval/index'
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-decision/daily-measurement/metrological-application/detail/index.vue')
                        }
                    ]
                }
            ]
        }
    ]
}
export default maintenanceDecision
